package dev.alm.reggietakeoutservice.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

// @Configuration
// 暂不使用
// 处理静态路径
public class WebMvcConfig extends WebMvcConfigurationSupport {

    // 配置静态目录
    @Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/test/**").addResourceLocations("classpath:/static/test/");
    }

}
